import BlankView from "@/layouts/BlankView";
const mes = [
  {
    path: "home",
    name: "生产工作台",
    meta: {
      icon: "dashboard",
    },
    component: () => import("@/module/mes/pages/home"),
  },
  {
    path: "factory-model",
    name: "工厂建模",
    meta: {
      icon: "setting",
    },
    component: BlankView,
    children: [
      {
        path: "orgnization",
        name: "组织架构",
        component: () => import("@/module/mes/pages/model/factory/orgnization"),
      },
      {
        path: "location",
        name: "厂内布局",
        component: () => import("@/module/mes/pages/model/factory/location"),
      },
      {
        path: "class",
        name: "班次",
        component: () => import("@/module/mes/pages/model/factory/class"),
      },
      {
        path: "calendar",
        name: "工作日历",
        component: () => import("@/module/mes/pages/model/factory/calendar"),
      },
    ],
  },
  {
    path: "tech-model",
    name: "工艺建模",
    meta: {
      icon: "setting",
    },
    component: BlankView,
    children: [
      {
        path: "route",
        name: "工艺路线",
        component: () => import("@/module/mes/pages/model/tech/route"),
      },
      {
        path: "bom",
        name: "BOM管理",
        component: () => import("@/module/mes/pages/model/tech/bom"),
      },
      {
        path: "procedure",
        name: "标准工序",
        component: () => import("@/module/mes/pages/model/tech/procedure"),
      }
    ],
  },
  {
    path: 'mps',
    name: '主生产计划',
    meta: {
      icon: 'build',
    },
    component: BlankView,
    children: [
      {
        path: 'order',
        name: '订单池',
        component: () => import('@/module/mes/pages/aps/order'),
      },
      {
        path: 'strategy',
        name: 'MPS策略',
        component: () => import('@/module/mes/pages/aps/mps/strategy'),
      },
      {
        path: 'plan',
        name: '主生产计划',
        component: () => import('@/module/mes/pages/aps/mps/plan'),
      }
    ]
  },
  {
    path: 'mrp',
    name: '物料需求计划',
    meta: {
      icon: 'api',
      page: {
        cacheAble: false
      }
    },
    component: BlankView,
    children: [
      {
        path: 'strategy',
        name: 'MRP策略',
        component: () => import('@/module/mes/pages/aps/mrp/strategy'),
      },
      {
        path: 'plan',
        name: '物料需求计划',
        component: () => import('@/module/mes/pages/aps/mrp/plan'),
      }
    ]
  },
  {
    path: "schedule",
    name: "车间排产与调度",
    meta: {
      icon: "compass",
    },
    component: BlankView,
    children: [
      {
        path: "order",
        name: "生产订单",
        component: () => import("@/module/mes/pages/aps/schedule/order"),
      },
      {
        path: "bill",
        name: "生产工单",
        component: () => import("@/module/mes/pages/aps/schedule/bill"),
      },
      {
        path: "task",
        name: "工序任务",
        component: () => import("@/module/mes/pages/aps/schedule/task"),
      },
    ],
  },
  {
    path: "execute",
    name: "生产执行",
    meta: {
      icon: "play-circle",
    },
    component: BlankView,
    children: [
      {
        path: "bill",
        name: "生产工单",
        component: () => import("@/module/mes/pages/ready/bill"),
      },
      {
        path: "leader-workstation",
        name: "班长工作台",
        component: () => import("@/module/mes/pages/execute/workstation/leader"),
      },
      {
        path: "employee-workstation",
        name: "工人工作台",
        component: () => import("@/module/mes/pages/execute/workstation/employee"),
      },
    ],
  },
  {
    path: "andon",
    name: "安灯管理",
    meta: {
      icon: "alert",
    },
    component: BlankView,
    children: [
      {
        path: "type",
        name: "安灯定义",
        component: () => import("@/module/mes/pages/andon/type"),
      },
      {
        path: "process",
        name: "处理流程",
        component: () => import("@/module/mes/pages/andon/process"),
      },
      {
        path: "kaban",
        name: "安灯看板",
        component: () => import("@/module/mes/pages/andon/kaban"),
      },
      {
        path: "log",
        name: "安灯记录",
        component: () => import("@/module/mes/pages/andon/log"),
      },
      {
        path: "analysis",
        name: "绩效分析",
        component: () => import("@/module/mes/pages/andon/analysis"),
      },
    ],
  },
  {
    path: "logistics",
    name: "车间物流",
    meta: {
      icon: "shopping-cart",
    },
    component: BlankView,
    children: [
      {
        path: "in",
        name: "入库",
        component: () => import("@/module/mes/pages/logistics/in"),
      },
      {
        path: "out",
        name: "出库",
        component: () => import("@/module/mes/pages/logistics/out"),
      },
      {
        path: "live",
        name: "实时库存",
        component: () => import("@/module/mes/pages/logistics/live"),
      },
      {
        path: "inventory",
        name: "库存盘点",
        component: () => import("@/module/mes/pages/logistics/inventory"),
      },
      {
        path: "log",
        name: "出入记录",
        component: () => import("@/module/mes/pages/logistics/log"),
      },
    ],
  },
  {
    path: "kaban",
    name: "车间看板",
    meta: {
      icon: "area-chart",
    },
    component: BlankView,
    children: [
      {
        path: "factory",
        name: "工厂看板",
        component: () => import("@/module/mes/pages/kaban/shop"),
      },
      {
        path: "shop",
        name: "车间看板",
        component: () => import("@/module/mes/pages/kaban/line"),
      },
      {
        path: "station",
        name: "工作中心看板",
        component: () => import("@/module/mes/pages/kaban/station"),
      },
    ],
  },
  {
    path: "kpi",
    name: "绩效管理",
    meta: {
      icon: "money-collect",
    },
    component: BlankView,
    children: [
      {
        path: "setting",
        name: "绩效设置",
        component: () => import("@/module/mes/pages/kpi/setting"),
      },
      {
        path: "report",
        name: "工人绩效",
        component: () => import("@/module/mes/pages/kpi/report"),
      },
    ],
  },
  {
    path: "analysis",
    name: "生产分析",
    meta: {
      icon: "radar-chart",
    },
    component: BlankView,
    children: [
      {
        path: "day",
        name: "生产日报",
        component: () => import("@/module/mes/pages/analysis/day"),
      },
      {
        path: "month",
        name: "生产月报",
        component: () => import("@/module/mes/pages/analysis/month"),
      },
      {
        path: "year",
        name: "生产年报",
        component: () => import("@/module/mes/pages/analysis/year"),
      },
    ],
  },
  {
    path: "change",
    name: "变化点管理",
    meta: {
      icon: "play-circle",
    },
    component: BlankView,
    children: [
      {
        path: "employee",
        name: "人员变化点",
        component: () => import("@/module/mes/pages/change"),
      },
      {
        path: "device",
        name: "设备变化点",
        component: () => import("@/module/mes/pages/change"),
      },
      {
        path: "material",
        name: "物料变化点",
        component: () => import("@/module/mes/pages/change"),
      },
      {
        path: "tech",
        name: "工艺变化点",
        component: () => import("@/module/mes/pages/change"),
      },
    ],
  },
  {
    path: "trace",
    name: "生产追溯",
    meta: {
      icon: "database",
    },
    component: BlankView,
    children: [
      {
        path: "forward",
        name: "正向追溯",
        component: () => import("@/module/mes/pages/trace/forward"),
      },
      {
        path: "reverse",
        name: "反向追溯",
        component: () => import("@/module/mes/pages/trace/reverse"),
      },
    ],
  },
];

export default mes;
